<div class="wrap">
{if $smarty.cookies.message != NULL}
	<div id="ajaxResponse1" class="ajaxResponse" style="display:block">{$smarty.cookies.message}</div>
{/if}
<h2>
	{if isset($smarty.get.subcat)}
 		Untermen&uuml; des Obermen&uuml;s "{$PARENT_NAME}" editieren</h2>  		
 	{else}
		Obermen&uuml; editieren
</h2>	
	{/if}
<form enctype="multipart/form-data" name="editcat" id="editcat" method="post" action="?{$smarty.server.QUERY_STRING}">
	<input type="hidden" name="act" value="editcat" />
	<input type="hidden" name="cat_id" value="{$smarty.get.id}" />
    <input type="hidden" name="cat_parent" value="{$smarty.get.catid}" />
	<table class="editform" width="100%" cellspacing="2" cellpadding="5">
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="cat_name">Name:</label></th>
			<td width="67%">
			<input name="cat_name" id="cat_name" type="text" value="{$THECATONE->cat_name}" size="40" /></td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			<label for="cat_description">Beschreibung:</label></th>
			<td><textarea name="cat_description" id="cat_description" 
				rows="5" cols="50" style="width: 97%;">{$THECATONE->cat_description}</textarea></td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="middle">
			<label for="status">Aktiv</label></th>
			<td width="67%">
				{if $THECATONE->cat_is_active eq '1'}
					<input name="status" id="status" type="checkbox" checked="checked" value="1"/>
				{else}
					<input name="status" id="status" type="checkbox" value="1"/>
				{/if}
			</td>
		</tr>
	</table>
	<p class="submit" align = "right">
		<input type="image" name="submit" src="../view/admin/images/object_save.png" value="" />
	</p>
</form>
</div>